<?php
namespace Home\Controller;
use Think\Controller;
class ItemController extends ShareController {
	public function _initialize(){
		parent::_initialize();
		parent::header();
	}
    public function introduction(){
		$id = I('get.id');
		
		//图片模块
		$Photo = M('Ware_photo');
		$list = $Photo->where("ware_id={$id}")->select();
		//规格模块
		$Cart = M('Ware_cart');
		$clist = $Cart->where("ware_id={$id}")->select();
		//详情模块
		$Ware = M('Ware');
		$wlist = $Ware->where("id={$id}")->find();
		
		$this->assign('list',$list);
		$this->assign('clist',$clist);
		$this->assign('wlist',$wlist);
		$this->assign('id',$id);
        $this->display();
    }
}
